html, body {
  margin: 0;
  height: 100%;
}

ol, ul, li {
  list-style-type: none;
}
ol, ul {
  padding: 0 1rem;
}
li {
  padding-left: 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, ol a, ul a, li a {
  color: rgba(0,0,0,0.87);
  font-weight: 500;
  text-decoration: none;
}
h3, li.active {
  background-color: rgba(0,0,0,0.05);
}

.main {
  background-color: #fff;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.toc-container {
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  background-color: #fff;
  display: block;
  width: 200px;
  overflow-y: auto;
  padding: 1rem 0 1rem 1rem;
  position: relative;
  right: 0;
  top: 0;
  border-right: 0.1rem solid #e8e8e8;
  transform: translateZ(0);
  white-space: nowrap;
  will-change: scroll-position;
  z-index: 1;
}

.thumbnails {
  -webkit-box-flex: 14;
  -webkit-flex: 14 14 0;
  -ms-flex: 14 14 0px;
  flex: 14 14 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

.thumbnail-item {
  display: inline-block;
}

.thumbnail {
  height: 240px;
}

.doc-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  position: absolute;
  height: 100%;
  width: calc(100% - 200px - 1.1rem);
  left: calc(200px + 1.1rem);
  background: white;
}

.code-panel {
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  background-color: #fff;
  display: block;
  width: 400px;
  overflow-y: auto;
  padding: 1rem;
  position: relative;
  right: 0;
  top: 0;
  border-right: 0.1rem solid #e8e8e8;
  transform: translateZ(0);
  white-space: nowrap;
  will-change: scroll-position;
  z-index: 1;
}

.code-panel, .code-editor, .code-editor .CodeMirror {
  height: 100%;
}

.chart-panel {
  -webkit-box-flex: 14;
  -webkit-flex: 14 14 0;
  -ms-flex: 14 14 0px;
  flex: 14 14 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

#query {
  display: inline-block;
  padding: .2rem .5rem;
  z-index: 1;
  background: transparent;
  font-size: 1em;
  line-height: 1.2em;
  font-weight: 200;
  border: 1px solid grey;
  box-sizing: border-box;
  width: calc(100% - 1rem);
}

.chart-frame {
  height: 100%;
  width: 100%;
}
